package com.behelpful.demo.quartz.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.behelpful.common.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

/**
 * 任务类型
 *
 * @author Alay
 * @date 2021-10-31 17:55
 * @since
 */
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum JobTypeEnum implements IEnum<String> {
    /**
     * spring实例调用;rest调用
     */
    INSTANCE(1),

    /**
     * REST 风格调用
     */
    REST(2);

    /**
     * 编码
     */
    @EnumValue
    private int code;


    JobTypeEnum(int code) {
        this.code = code;
    }
}
